<?php
#品牌等级初始化
ini_set('display_errors', 1);
error_reporting(-1);
require_once '/data/wwwroot/g_vendor/autoload.php';
ini_set('memory_limit', '1024M');


$uid = $argv[1] ?? 0;
$taskName = $argv[2] ?? '';
$finishedNum = $argv[3] ?? 1;

if (empty($uid)) exit("no uid");
if (empty($taskName)) exit("no task name");
$task = \Biz\service\brand\BrandHandleTask::getInstance($uid);
$task->selectTask($taskName)->finish($finishedNum);
if ($error = $task->error()) {
    var_dump($error);
}
